# 行数
i = 1
while i <= 9:
    # 计数器
    j = 1
    while j <= i:
        # 打印
        print("%d * %d = %d" % (j, i, j * i), end="\t")
        j += 1
    i += 1
    # 换行
    print()
